{$headName}
Provider Name {if $branch } {$branch->branchName}{else} All {/if}
Provider Id {if $branch } {$branch->branchId} {else} All {/if}
Batch Month {if $batchMonthFrom}{$batchMonthFrom}{else} -{/if}
Date {$today}

{$insuranceCompany->name}

{assign var=i value=1} {foreach $companyClientsBills as $data} {capture assign=i}{$i+1}{/capture} {/foreach}
  Our patient
1# Company Name Gross Billed Discount deductible Net Billed
{$i} {$data->companyname} {$data->totalAccept} {$data->totalDiscount} {$data->totalCarry} {$data->totalNet}
Total {$totalAccept} {$totalDiscount} {$totalCarry} {$totalNet}
{literal} {/literal}